Comment

annotation class Comment(val value: String)

Java field-friendly version of TomlComment

Adds comments to corresponding property.

class IntData(
    @TomlComment("""
        An integer,
        but is decoded into Long originally
    """)
    val int: Int
)
IntData(10086)

will produce:

# An integer,
# but is decoded into Long originally
int = 10086

Author

fzzyhmstrs

Since

0.2.0

Properties

Link copied to clipboard

the comment text, could be multiline.